import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vite.dev/config/
export default defineConfig({
  plugins: [react()],
  server:{
    proxy:{
      "/login":{
        target:'http://113.44.139.133:8005',
        changeOrigin:true,
        rewrite:(path)=>path.replace(/^\/login/,"")
      },
      "/api":{
        target:'http://localhost:22064',
        changeOrigin:true,
      }
    }
  }
})
